﻿using System;
using System.Collections;

namespace XNET.Extension
{
    /// <summary>
    /// 列表扩展
    /// </summary>
    public static class ListExtension
    {
        /// <summary>
        /// 是否为空
        /// </summary>
        /// <param name="list">列表</param>
        /// <returns></returns>
        public static bool IsNullOrEmpty(this IList list)
        {
            if (list == null || list.Count <= 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
